package com.sitech.portal.server.form;

import com.sitech.portal.server.domain.MessageSetting;

public class MessageSettingForm {

	String guid;
	String login_id;
	int display_type;
	int display_interval;
	int display_sum;
	int display_scope;
	
	public MessageSettingForm(){
		
	}
	
	public MessageSettingForm(MessageSetting settingBean){
		if(settingBean !=null){
			this.setGuid(settingBean.getGUID());
			this.setLogin_id(settingBean.getLOGIN_ID());
			this.setDisplay_type(settingBean.getDISPLAY_TYPE());
			this.setDisplay_interval(settingBean.getDISPLAY_INTERVAL());
			this.setDisplay_sum(settingBean.getDISPLAY_SUM());
			this.setDisplay_scope(settingBean.getDISPLAY_SCOPE());
		}else{
			this.setDisplay_type(0);
			this.setDisplay_interval(1);
			this.setDisplay_sum(3);
			this.setDisplay_scope(0);
		}
	}
	public String getLogin_id() {
		return login_id;
	}

	public void setLogin_id(String login_id) {
		this.login_id = login_id;
	}

	public String getGuid() {
		return guid;
	}
	public void setGuid(String guid) {
		this.guid = guid;
	}

	public int getDisplay_type() {
		return display_type;
	}

	public void setDisplay_type(int display_type) {
		this.display_type = display_type;
	}

	public int getDisplay_interval() {
		return display_interval;
	}

	public void setDisplay_interval(int display_interval) {
		this.display_interval = display_interval;
	}

	public int getDisplay_sum() {
		return display_sum;
	}

	public void setDisplay_sum(int display_sum) {
		this.display_sum = display_sum;
	}

	public int getDisplay_scope() {
		return display_scope;
	}

	public void setDisplay_scope(int display_scope) {
		this.display_scope = display_scope;
	}
	
}
